Parse a flight log, rotate it to the flightline and cutoff the takeoff and landing.

Create a Schedule Definition using the create_p23 generator function. Use this to create a P23 Schedule and template State information. This is done at the average depth of the flown data and in the same direction.

Align the template to the flight data.

Update the schedule to match the flight

Create a new template then repeat the alignment, this time without mirroring roll and yaw directions. The resulting alignment is better than the first as it picks up rebound rolls and the axis rates of the template match the flown data.

Correct the intended inter element parameters to make a corrected shcedule and template

The intended template just follows the roll directions used in the flight. The corrected template corrects the roll directions if they do not fit a valid option defined in the manoeuvre parameters. We want the intended template to have these corrected roll directions.

This is commented for now as not working properly so we just assume that the roll directions flown correspond with a valid option.

Now we have aligned and intended templates we can score the manoeuvres.